Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor multi test set datasets; add seq id test splits to GO #72

Merged
merged 8 commits into from
Feb 9, 2024

Conversation

a-r-j
Copy link
Owner

@a-r-j a-r-j commented Feb 5, 2024

  • Improves API for multi test set datasets
  • Improves setup in base datamodule to avoid setting up all datasets at once
  • Adds caching to avoid duplicating in memory loading
  • Adds seq id splits to GO dataset.

README.md Outdated Show resolved Hide resolved
@@ -518,7 +530,7 @@ def get(self, idx: int) -> Data:
:return: PyTorch Geometric Data object.
"""
if self.in_memory:
return self._batch_format(self.data[idx])
return self._batch_format(copy.deepcopy(self.data[idx]))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this lead to one of the performance enhancements we discussed previously?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No noticeable delta but it makes me feel better about some of the gotchas here: https://alecstashevsky.com/post/on-the-fly-augmentation-with-pytorch-geometric-and-lightning-what-tutorials-dont-teach/

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. SGTM

@amorehead
Copy link
Collaborator

Besides the two comments above, LGTM!

@a-r-j a-r-j merged commit 99696a6 into main Feb 9, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants